package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    public Set<Permission> findByRoleId(Integer roleId);

    Page<Permission> findByCondition(String queryString);

    public void add(Permission permission);

    long selectCountByPermissionId(Integer id);
    public List<Permission> findAll();
    void deleteById(Integer id);
    public Permission findById(Integer id);
    public void edit(Permission permission);
}
